package swing_UI;



import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

public class ClientObserver implements ChangeListener {

	ClientButton button;
	
	public ClientObserver(ClientButton target)
	{
		this.button = target;
	}
	
	
	
	@Override
	public void stateChanged(ChangeEvent e) {
		Client sender = (Client)e.getSource();
		this.button.setStatus(sender.getStatus());
		
	}

}
